<% content_for :page_title do %>
  <%= page_header_back_button spree.edit_admin_product_path(@product) %>
  <%= @variant.human_name %>
<% end %>

<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @variant } %>

<%= form_for [:admin, @product, @variant] do |f| %>
  <div class="row">
    <div class="col-lg-6">
      <%= render 'spree/admin/variants/form/basic', f: f %>
      <%= render 'spree/admin/variants/form/pricing', f: f %>
      <%= render 'spree/admin/variants/form/inventory', f: f %>
    </div>
    <div class="col-lg-6">
      <%= render 'spree/admin/variants/form/media', viewable: @variant %>
    </div>
  </div>
  <%= render 'spree/admin/shared/edit_resource_links', f: f %>
<% end %>
